package com.lrkj.lease.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 合同类型对象 tb_contract_category
 *
 * @author yajun_ren
 * @date 2022-04-26
 */
@Data
public class ContractCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    private String id;

    /**
     * 小区ID
     */
    @Excel(name = "小区ID")
    private String communityId;

    /**
     * 类型名称
     */
    @Excel(name = "类型名称")
    private String typeName;

    /**
     * 类型代码
     */
    @Excel(name = "类型代码")
    private String typeCode;

    /**
     * 关联收费项目
     */
    @Excel(name = "关联收费项目")
    private String chargeItemIds;

    /**
     * 关联收费项目名称
     */
    @Excel(name = "关联收费项目名称")
    private String chargeItemNames;

    //小区名称
    private String communityName;

    //甲方联系人
    private List<FirstParty> firsPartyList;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("communityId", getCommunityId())
                .append("typeCode", getTypeCode())
                .append("chargeItemIds", getChargeItemIds())
                .append("chargeItemNames", getChargeItemNames())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
